package com.yfbao.horizon.schedule.tk.config;


import com.github.houbb.sensitive.word.bs.SensitiveWordBs;
import com.yfbao.horizon.schedule.tk.handler.DefaultWordDeny;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SensitiveWordConfig {

    private DefaultWordDeny wordDeny =new DefaultWordDeny();

    /**
     * 初始化引导类
     * @return 初始化引导类
     * @since 1.0.0
     */
    @Bean
    public SensitiveWordBs sensitiveWordBs() {
        SensitiveWordBs sensitiveWordBs = SensitiveWordBs.newInstance()
//                .wordAllow(WordAllows.chains(WordAllows.defaults()))
//                .wordDeny(WordDenys.chains(wordDeny,WordDenys.defaults()))
                // 各种其他配置
                .init();

        return sensitiveWordBs;
    }
}
